package io.e2x.testground.fruitstore.dal.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.math.BigInteger;
/**
 * 用户
 * @author: sukimiya
 * @date: 2020/5/27 16:01
 */
@Table("USER_TABLE")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @Id
    private long id;
    private String username;
    private String phone;

    public User(String name, String phone) {
        this.username = name;
        this.phone = phone;
    }
}
